package ms.maplestory.boot.packets.universal;

import ms.maplestory.boot.connection.OutPacket;

import java.util.Set;

public class ExtendSP {

    public static OutPacket encode(OutPacket out, Set<ms.maplestory.boot.client.character.ExtendSP> extendSPs) {
        out.encodeByte(extendSPs.size());
        for (ms.maplestory.boot.client.character.ExtendSP extendSP : extendSPs) {
            out.encodeByte(extendSP.getJobLevel());
            out.encodeByte(extendSP.getSp());
        }
        return out;
    }

}
